package statemachine.fsm;

public enum ObjectBehaveStateEnum {

    IDLE_STATE(1, "空闲", new IdleState()),
    PURSUIT_STATE(2, "追击", new PursuitState()),
    ATTACK_STATE(3, "攻击", new AttackState()),
    GO_HOME_STATE(4, "回家", new GoHomeState());

    private int state;
    private String desc;
    private AbstractState abstractState;

    ObjectBehaveStateEnum(int state, String desc, AbstractState abstractState) {
        this.state = state;
        this.desc = desc;
        this.abstractState = abstractState;
    }

    public AbstractState getAbstractState() {
        return abstractState;
    }
}
